function ULoader() {
	var self = this;
	var _targetId;
	this.load = function(page, targetId) {
		_targetId = targetId;
		doLoad(page, onloadDataReady);
	}
	
	function doLoad(page, callback) {
		$.ajax({
			  url: page,
			  dataType: 'text',
			  data: null,
			  success: callback
			});
//		$.mobile.showPageLoadingMsg();
//		 $.ajax({url:page, success:callback});
	}
	
	function onloadDataReady(result) {
//		$.mobile.hidePageLoadingMsg();
		if ( !result) {
			return;
		}
		if ( _targetId ) {
			$('#'+_targetId).html(result).trigger("create");
		}
	}
}

ULoader.loadPage = function(page) {
	var loader = new ULoader();
	loader.load(page, 'uPageContentPrimary');
};

